home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The 640 MEG Shareware Studio 2
/
The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO
/
clang
/
nn.zip
/
BACK_ACT.SH
< prev
next >
Wrap
Text File
|
1989-06-28
|
522b
|
31 lines
# prefix is inserted above by make
#
# back_act will maintain a set of `old' active files
# in the DB directory where they can be used by nngoback
# to backtrack the rc file a number of days.
#
# It should be invoked by cron every day at midnight.
# It should run as user `news'!
#
cd $DB || exit 1
p=15
l=""
for i in 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
do
if [ -f active.$i ]
then
mv active.$i active.$p
l=$p
elif [ -n "$l" ]
then
ln active.$l active.$p
fi
p=$i
done
cp $ACTIVE active.0
chmod 644 active.0